<h1>Docentes</h1>

<table>
  <tr>
    <th>Nombre</th>
    <th>Unidad academica</th>
    <th>Dedicación</th>
    <th></th>
    <th></th>
    <th></th>
  </tr>

<% @teachers.each do |teacher| %>
  <tr>
    <td><%= teacher.names + " " + teacher.lastnames  %></td>
    <td><%= teacher.academic_unit %></td>
    <td><%= teacher.dedication %></td>
    <td><%= link_to 'Show', teacher %></td>
    <td><%= link_to 'Edit', edit_teacher_path(teacher) %></td>
    <td><%= link_to 'Destroy', teacher, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New Teacher', new_teacher_path %>
